package cn.woochen.mvvmframe.config.status


object ErrorCode {

    //custom client code
    const val UNKNOW = "80000"         //未知异常
    const val UNKNOWN_HOST = "80001" //无法解析主机
    const val TIME_OUT = "80002"  //连接超时
    const val REPEAT_REQUEST = "80003"  //重复请求

    //server code
    val successCodes = listOf("0") //请求成功
    val noToastCodes by lazy {
        mutableListOf<String?>()
    }

    //server code
    const val TOKEN_INVALIDE = "2000" //token失效

    /**
     * 响应code，msg的键名,与[BaseBean]保持一致
     */
    const val RESPONSE_CODE_KEY = "errorCode"
    const val RESPONSE_MSG_KEY = "errorMsg"

}